package com.feiyu.auth.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import org.springblade.core.tool.api.IResultCode;

import javax.servlet.http.HttpServletResponse;

/**
 * @author tang ming
 * @since 2021/11/29 19:05
 */
@Getter
@AllArgsConstructor
public enum AuthCode implements IResultCode {
    TOKEN_INVALID(HttpServletResponse.SC_BAD_REQUEST, "token失效"),
    CODE_ERROR(HttpServletResponse.SC_BAD_REQUEST, "验证码错误");
    /**
     * code编码
     */
    final int code;
    /**
     * 中文信息描述
     */
    final String message;

}
